package com.cory.module.job.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Select;
import com.cory.module.job.domain.entity.JobAsyncDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 *  Mapper 接口
 *
 * @author xc
 * @since 2023-05-09
 */
public interface JobAsyncDetailMapper extends BaseMapper<JobAsyncDetail> {

    @Select("select * from job_async_detail where job_id = #{jobId} and state = -1 order by id limit 100")
    List<JobAsyncDetail> runList(Integer jobId);
    
}
